<template>
	<view class="m-coma">
		子组件Coma
		{{msg}}
		<button type="primary" @click="onSonEvent">子传父</button>
	</view>
</template>

<script>
	export default {
		name:"ComA",
		props:['msg'],
		data() {
			return {
				
			};
		},
		methods:{
			onSonEvent(){
				this.$emit('some-event','这是子组件内容11')
			}
		}
	}
</script>

<style lang="scss" scoped>
.m-coma{
	width: 400rpx;
	height: 400rpx;
	background-color: skyblue;
}
</style>